<template>
     <div class="mine">
         <!-- 二级我的 -->
         <h3 class="daname">饿了么
         </h3>

         <div class="account">
                <div class="one">
                    <div><img src="../../../mine2 .png" alt=""></div>
                    <div>
                        <h3>7a7a8s7sdsf7vu</h3>
                        <p>132******222</p>
                    </div>
                </div>
                <div>
                    <button>账户设置</button>
                </div>
                

         </div>
         <div class="chihuo">
             <div class="chi">
                <h3>吃货卡</h3> 
                <span>吃货豆 1423</span>
                <p>你不吃我吃，我不吃他吃,全部都爱吃火锅</p>
                </div>
         </div>
         
         <div class="hong">
             <div>
                 <h4>红包</h4> 
                <span>七张今日到期</span>
                </div>
             <div>
                <h4>余额</h4> 
                <span>0元</span>
                </div>
         </div>

         <!-- <div class="hong xia"> -->
             <!-- <div>我的地址</div>
             <div>我的客服</div>
             <div>店铺关注</div>
             <div>评价有礼</div> -->

             <van-tabbar v-model="active" class="zhong">
  <van-tabbar-item icon="home-o">我的电脑</van-tabbar-item>
  <van-tabbar-item icon="search">我的客服</van-tabbar-item>
  <van-tabbar-item icon="friends-o" @click="toCollect">店铺关注</van-tabbar-item>
  <van-tabbar-item icon="setting-o">评价有礼</van-tabbar-item>
</van-tabbar>
         <!-- </div> -->

         <div class="hong zui">
             <div>
                 <h4>邀好友赚现金</h4>
                 <p>最高得15元</p>
                 <div><img src="../../../mine1.png" alt=""></div>
                 <div>
                     <button>去邀请</button>
                     <button>查佣金</button>
                 </div>
            </div>
             <div>
                 <h4> 饿了吗服务号</h4>
                 <p>关注后及时接收系统通知</p>
                 <div><img src="../../../mine2 .png" alt=""></div>
                 <div>
                     <button>立即关注</button>
                 </div>
            </div>


         </div>
     </div>
</template>

<script>
export default {
     data(){
         return{
            active: 0,
         }
     },
     methods:{
        toCollect(){
            this.$router.push('/collect')
        }
     }
}
</script>

<style lang="scss" scoped>
       *{
    margin: 0;
    padding: 0;
}
.daname{
    margin-left: 10px;
    margin-top: 5px;
}
      .chihuo{
          display: flex;
          justify-content: center;
        //   align-items: center;
        // line-height: 20px;
        //   margin-top: 20px;
      }
     .mine .chi{
        //  text-align: center;
         padding-left: 20px;
         box-sizing: border-box;
         width: 95%;
         height: 80px;
        //  line-height: 80px;
         border-radius: 10px;
         background-color: rgb(41, 173, 180);
         margin-top: 10px;
       
         color: #f5f5f5;
         h3{
             font-weight: 400;
             display: inline-block;
             padding-right: 20px;

         }
         p{
             font-size: 13px;
         }
         
     }
     .hong{
         display: flex;
         justify-content: center;
         h4{
             margin-bottom: 5px;
         }

         span{
             color: black;
             font-size: 13px;
            //  padding: 5px 0;
         }
     }
     .hong>div{
         color: red;
         text-align: center;
        //  font-size: 20px;
         width: 40%;
         height: 80px;
        background-color: #f5f5f5;
        margin: 10px;
        border-radius: 10px;
     }
     .xia>div{

         height: 50px;
         color: black;
         font-size: 16px;
     }
     .zui>div{
width: 45%;
height: 200px;
color: black;
font-size: 16px;
text-align: left;
div{
    text-align: center;
    margin-top: 20px;
    img{
        width: 50px;
        
    }
    button{
        padding: 2px;
        margin:0 5px;
        border-radius: 10px;
        border: none;
        border: 1px solid #999;
    }
}
// margin-left: 5px;
h4{
    margin: 5px 0;
    margin-left: 5px;
}
 p{
     font-size: 13px;
     margin-left: 5px;
 }
}

.account{
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    button{
        margin-top: 10px;
        border: none;
        border: 1px solid #999;
        border-radius: 10px;
        font-size: 14px;
        padding: 3px;

    }
    .one{
        display: flex;
    //    padding-top: 20px;
    h3{
        margin: 5px 0;
    }
        img{
            width: 50px;
            border-radius: 10px;
            vertical-align: middle;
        }
    }
}
.zhong{
    position: static;
}
</style>